home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / java / rmi / MarshalledObject$MarshalledObjectOutputStream.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  860 b   |  33 lines

  1. package java.rmi;
  2.  
  3. import java.io.IOException;
  4. import java.io.ObjectOutputStream;
  5. import java.io.OutputStream;
  6. import sun.rmi.server.MarshalOutputStream;
  7.  
  8. class MarshalledObject$MarshalledObjectOutputStream extends MarshalOutputStream {
  9.    private ObjectOutputStream locOut;
  10.    private boolean hadAnnotations;
  11.  
  12.    MarshalledObject$MarshalledObjectOutputStream(OutputStream var1, OutputStream var2) throws IOException {
  13.       super(var1);
  14.       this.useProtocolVersion(2);
  15.       this.locOut = new ObjectOutputStream(var2);
  16.       this.hadAnnotations = false;
  17.    }
  18.  
  19.    boolean hadAnnotations() {
  20.       return this.hadAnnotations;
  21.    }
  22.  
  23.    protected void writeLocation(String var1) throws IOException {
  24.       this.hadAnnotations |= var1 != null;
  25.       this.locOut.writeObject(var1);
  26.    }
  27.  
  28.    public void flush() throws IOException {
  29.       super.flush();
  30.       this.locOut.flush();
  31.    }
  32. }
  33.